package com.erp.fin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.fin.dao.PricetypeDao;
import com.erp.fin.domain.PricetypeDO;
import com.erp.fin.service.PricetypeService;



@Service
public class PricetypeServiceImpl implements PricetypeService {
	@Autowired
	private PricetypeDao pricetypeDao;
	
	@Override
	public PricetypeDO get(Long id){
		return pricetypeDao.get(id);
	}
	
	@Override
	public List<PricetypeDO> list(Map<String, Object> map){
		return pricetypeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return pricetypeDao.count(map);
	}
	
	@Override
	public int save(PricetypeDO pricetype){
		return pricetypeDao.save(pricetype);
	}
	
	@Override
	public int update(PricetypeDO pricetype){
		return pricetypeDao.update(pricetype);
	}
	
	@Override
	public int remove(Long id){
		return pricetypeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return pricetypeDao.batchRemove(ids);
	}
	
}
